package com.hxw.schema.factory.simpleFactory;

import com.hxw.schema.factory.Operation;

/**
 * Created by Think on 2018/5/4.
 */
public class Client {
    public static void main(String[] args) {
        Operation operation = SimpleFactory.createOperation('+');
        operation.setA(3);
        operation.setB(4);
        double result = operation.getResult();
        System.out.println("result = " + result);
    }
}
